package com.leyou.item.dto;

import lombok.Data;

import java.util.List;

/**
 * @author YYP
 * @date 2020/12/28
 */
@Data
public class PageDTO<T> {
    private Long total;//总条数
    private Long totalPage; //总页数
    private List<T> items;

    public PageDTO() {

    }

    public PageDTO(Long total,List<T> items) {
        this.total = total;
        this.items = items;
    }

    public PageDTO(Long total, Long totalPage,List<T> items) {
        this.total = total;
        this.totalPage = totalPage;
        this.items = items;
    }
}
